import request from '@/utils/request'

// 查询考勤配置列表
export function listWorkAttendancesConfig(query) {
  return request({
    url: '/hrm/workAttendancesConfig/list',
    method: 'get',
    params: query
  })
}

// 查询考勤配置详细
export function getWorkAttendancesConfig(id) {
  return request({
    url: '/hrm/workAttendancesConfig/' + id,
    method: 'get'
  })
}


// 查询考勤配置详细---根据部门id
export function selectHrmWorkAttendancesConfigByDeptId(id) {
    return request({
        url: '/hrm/workAttendancesConfig/selectHrmWorkAttendancesConfigByDeptId/' + id,
        method: 'get'
    })
}


// 新增考勤配置
export function addWorkAttendancesConfig(data) {
  return request({
    url: '/hrm/workAttendancesConfig',
    method: 'post',
    data: data
  })
}

// 修改考勤配置
export function updateWorkAttendancesConfig(data) {
  return request({
    url: '/hrm/workAttendancesConfig',
    method: 'put',
    data: data
  })
}

// 删除考勤配置
export function delWorkAttendancesConfig(id) {
  return request({
    url: '/hrm/workAttendancesConfig/' + id,
    method: 'delete'
  })
}
